package work.mediway.mdm.biz.service.hierarchy;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

import work.mediway.mdm.core.page.QueryRequest;
import work.mediway.mdm.core.transport.ErrorMsgVO;
import work.mediway.mdm.biz.entity.hierarchy.HosBusinessUnit;

public interface HosBusinessUnitService extends IService<HosBusinessUnit> {
    void saveHosBusinessUnit(HosBusinessUnit hosPerson);

    Page<HosBusinessUnit> findHosBusinessUnit(HosBusinessUnit hosPerson, QueryRequest queryRequest);

    void updateHosBusinessUnit(HosBusinessUnit hosPerson);

    ErrorMsgVO deleteHosBusinessUnit(String stationTypeId);

    ErrorMsgVO importHosBusinessUnit(List<HosBusinessUnit> hosPersonList, boolean updateSupport);

    /**
     * 查询业务单元类型
     *
     * @return List<HosBusinessUnit>
     */
    List<HosBusinessUnit> listHosBusinessUnitType();
}
